<!DOCTYPE html>
<html lang="<?php echo ($lang_url==''? 'es': substr($lang_url, 0, 2)); ?>">
<head>
  <meta charset="utf-8" />

  <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame 
       Remove this if you use the .htaccess -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

  <title>sin plugin</title>

  <meta name="robots" content="noindex" />
  <meta name="viewport" content="width=device-width; initial-scale=1.0" />
  <style media="screen" type="text/css">
  	body {
		font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
		margin: 60px 0 0 0;
		padding: 0;
	}
  	.absoluto{
  		text-align: center;
  	}
  	.absoluto #countdown{
  		background-color:#FFFFFF;
  		color:#DB4B39;
  		font-size:3em;
  		padding: 10px;
		-moz-border-radius: 	10px;
		-webkit-border-radius: 	10px;
		border-radius: 			10px;
	}
	.aviso{
		color: #F0F0F0;
	}
  </style>
</head>

<body>
<?php
if(isset($link)){
	$location = base_url('player/view/?link='.urlencode($link).'&video='.$video);
} 
?>
	<div class="absoluto">
		<span id="countdown">45</span>
		<p class="aviso"><?php echo lang('v_wait_loading'); ?></p>
	<div>
<?php echo '<script>
var seconds = '.$count.';
setInterval(
function(){
if (seconds <= 0) {
window.location = "'.$location.'";
}
else {
document.getElementById("countdown").innerHTML = --seconds;
}
},
1000
);
</script>'; ?>
</body>
</html>
